/*
 * ColumnBean.java		1.00	2008. 01. 15
 *
 * Copyright (c) 2008 David.Kim(KJS). All Rights Reserved.
 * 
 * This software is the confidential and proprietary information
 * of David.Kim(KJS).  You shall not disclose such Confidential Information
 * and shall use it only in accordance with the terms of the license agreement
 * you entered into with David.Kim(KJS).
 */
package doit.gen.domain;

/**
 * <pre>
 * system      : 공통
 * menu        : 공통
 * source      : Column.java
 * description : 자동생성용 테이블 컬럼
 * </pre> 
 * @version
 * <pre> 
 * 1.0	2008. 01. 15  leewan  최초 작성
 * 1.1	
 * </pre>
 */
public class Column {
	
    private String tableName;
    private String tableComments;
    private String columnName;
    private String columnId;
    private String primaryYn;
    private String notNull;
    private int dataLength = 0;
    private int dataScale = 0;
    private int dataPrecision = 0;
    private String dataType;
    private String dataTypeInfo;
	private String dataDefault;
    private String columnComments = "";
    
    public Column() {}

    public Column(String tableName, String columnName, String dataType, String primaryYn) {
        this.tableName = tableName;
        this.columnName = columnName;
        this.dataType = dataType;
        this.primaryYn = primaryYn;
    }

    public String toString() {
        return "\ttableName : " + this.tableName +
            "\tcolumnName : " + this.columnName +
            "\tdataType : " + this.dataType +
            "\tprimaryYn : " + this.primaryYn;
    }

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public String getDataType() {
		return dataType;
	}

	public void setDataType(String dataType) {
		this.dataType = dataType;
	}
	
    public String getDataTypeInfo() {
		return dataTypeInfo;
	}

	public void setDataTypeInfo(String dataTypeInfo) {
		this.dataTypeInfo = dataTypeInfo;
	}

	public int getDataLength() {
		return dataLength;
	}

	public void setDataLength(int dataLength) {
		this.dataLength = dataLength;
	}

	public int getDataScale() {
		return dataScale;
	}

	public void setDataScale(int dataScale) {
		this.dataScale = dataScale;
	}

	public int getDataPrecision() {
		return dataPrecision;
	}
	
	public void setDataPrecision(int dataPrecision) {
		this.dataPrecision = dataPrecision;
	}

	public String getPrimaryYn() {
		return primaryYn;
	}

	public void setPrimaryYn(String primaryYn) {
		this.primaryYn = primaryYn;
	}

	public String getTableComments() {
		return tableComments;
	}

	public void setTableComments(String tableComments) {
		this.tableComments = tableComments;
	}

	public String getColumnId() {
		return columnId;
	}

	public void setColumnId(String columnId) {
		this.columnId = columnId;
	}

	public String getNotNull() {
		return notNull;
	}

	public void setNotNull(String notNull) {
		this.notNull = notNull;
	}

	public String getDataDefault() {
		return dataDefault;
	}

	public void setDataDefault(String dataDefault) {
		this.dataDefault = dataDefault;
	}

	public String getColumnComments() {
		return columnComments;
	}

	public void setColumnComments(String columnComments) {
		this.columnComments = columnComments;
	}
}
